import request from '@/utils/request'
const logistics = {
  getLogisticsCompanyListAPI: function (params) {
    return request({
      url: '/sys/logistics/company/list',
      method: 'post',
      data: params
    })
  },
  addLogisticsCompanyAPI: function (params) {
    return request({
      url: '/sys/logistics/company/add',
      method: 'post',
      data: params
    })
  },
  updateLogisticsCompanyAPI: function (params) {
    return request({
      url: '/sys/logistics/company/update/' + params.logisticsCompanyCode,
      method: 'put',
      data: params
    })
  },
  deleteLogisticsCompanyAPI: function (logisticsCompanyCode) {
    return request({
      url: '/sys/logistics/company/delete/' + logisticsCompanyCode,
      method: 'delete'
    })
  }
}
export default logistics
